@DTS Engineer
Love that video. I am not sure a custom build rule is a fit for my needs. From the documentation
A build rule is the preferred way to process files that are independent from each other.
Which I do not think applies here. There is a large bundle of react JS files that are compiled into a handful of html/css/resources in a folder.
However that comment about BUILT_PRODUCTS_DIR does seem on point and resolves another question I had.
Here's what remains. I seem to need to add the aggregate target that outputs to ${BUILT_PRODUCTS_DIR}/build as a target dependency. Otherwise Xcode does not seem to realize that even though the script in the aggregate output target outputs to ${BUILT_PRODUCTS_DIR}/build and that ${BUILT_PRODUCTS_DIR}/build is a resource copied in "copy bundle resources" that it needs to run the aggregate target. When I add the aggregate target as a target dependency it runs every time and does not seem to benefit from the dependency analysis check even if just building the aggregate target does benefit.
Is this how things are supposed to work or is there a way to get the aggregate target (when added as a target dependency) to have its run script phase ran based on dependency analysis as normal?